/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSkyRoom.bridge.major;

import java.util.Collection;
import ru.jSkyRoom.interfaces.major.ActorValue;
import ru.jSkyRoom.interfaces.sub.PerkLink;
import skyproc.AVIF;

/**
 *
 * @author Rakev
 */
public class ActorValueBridge extends DescriptionedMajorBridge<AVIF> implements ActorValue {

    public ActorValueBridge(AVIF adapting) {
        super(adapting);
    }

    @Override
    public String getAbbreviation() {
        return getRawObject().getAbbreviation();
    }

    @Override
    public void setAbbreviation(String abbr) {
        getRawObject().setAbbreviation(abbr);
    }

    @Override
    public Collection<PerkLink> getPerkReferences() {
        Collection<AVIF.PerkReference> perkReference = getRawObject().getPerkReferences();
        return (Collection) getBridgeFactory().createBridges(perkReference);
    }
}
